import React from 'react';

export default function Title({ level = 1, ...rest }: any) {
  return (
    <div
      className="title"
      style={{ fontSize: Math.ceil(18 * (1.1 - level / 10)) }}
    >
      {rest.children}
    </div>
  );
}
